<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<style>
*{
	margin: 0px;
	padding: 0px;
}
table{
	width: 1400px;
	margin: auto;
	margin-top:60px;
}

table td{
	width:450px;
	height:35px;
	line-height: 40px;
	text-align: center;
}


</style>
<body>

	<form id="form1" action="../queryAllOederServlet" method="get">
		<table border="1px" cellspacing="0" cellpadding="0">
			<tr>
				<td>订单id</td>
				<td>用户id</td>
				<td>订单编号</td>
				<td>电影</td>
				<td>电影放映时间</td>
				<td>放映厅</td>
				<td>座位</td>
				<td>总价</td>
				<td>购票时间</td>
				<td>位置</td>
				
			</tr>
			<c:forEach items="${Order}" var="ord">
			<tr>
				<td>${ord.order_id}</td>
				<td>${ord.user_id}</td>
				<td>${ord.schedule_id}</td>
				<td>${ord.movie_name}</td>
				<td>${ord.movie_time}</td>
				<td>${ord.order_ting}</td>
				<td>${ord.order_position}</td>
				<td>${ord.order_price}</td>
				<td>${ord.order_time}</td>
				<td>${ord.address}</td>	
			</tr>
			</c:forEach>
			</table>
	</form>
	<script>
	function $(id){
		return document.getElementById(id);
	}
	function $$(s){
		return document.querySelector(s);
	}
	function $$$(s){
		return document.querySelectorAll(s);
	}	
	function allCloose(){
		var cloose=$$('#allCheckBox').checked;
		for(var i=0;i<$$$('.input1').length ;i++){
			if(cloose==true){
				$$$('.input1')[i].checked=true;
			}else{
				$$$('.input1')[i].checked=false;
			}
		}
	}
	function onChange(url){
		$("form1").action=url;
		$("form1").submit();
	}
	function show(o){
		//var val=o.parentNode.parentNode.firstElementChild.innerHTML;
		$("uid").value=o;
		$("form1").submit();
	}
	</script>

</body>
</html>